<template>
  <div>
    <p>我是主页页面 </p>
    <cube-button @click="goTo('/details')">跳转到详情页</cube-button>
    <transition name="page-move">
      <router-view />
    </transition>
  </div>
</template>

<script>

import { getLoadSubCompanyList } from '@/api'

export default {
    name: 'home',
    created () {
        getLoadSubCompanyList({
            webIdentityInnerId: 938,
            unitId: 100001,
            t: 1555311607157,
            appkey: 679836987,
            stoken: '810987f29f58ac7ea4511bdcf0320a66'
        })
    // this.$createToast({
    //     txt: '我是主页页面',
    //     type: 'text'
    // }).show()
    },
    data () {
        return {

        }
    },
    methods: {
        goTo (subPath) {
            this.$router.push(subPath)
        }
    }
}
</script>

<style lang="scss" scoped>
</style>
